<h:panelGroup xmlns:h='http://java.sun.com/jsf/html'
              xmlns:p='http://primefaces.org/ui'
              xmlns:x='http://java.sun.com/jsf/composite/ui/component' styleClass='IILibroVentas' id='IILibroVentas'><p:growl id='growl'/>

 <p:toolbar styleClass='toolBar'>

 <p:toolbarGroup style='width:100%'>

 <p:commandButton icon='ui-icon-new'  title='Nuevo' actionListener='#{IILibroVentas.uiClean}'  update='@(.IILibroVentas)' style='width:70px' process='@this'/>

 <p:commandButton id='#{formId}btnTitle' value='RESUMEN' style='width:10%;position:absolute;left:40%;background: transparent;border: none;font-weight: bold' actionListener='#{IILibroVentas.uiForm}'  update='@(.IILibroVentas)' process='@this'/>

 <p:commandButton icon='ui-icon-find' title='Buscar'  actionListener='#{IILibroVentas.uiFind}'   update='@(.IILibroVentas)' style='width:70px;float:right' process='@this ps hd'/>

 </p:toolbarGroup>

 </p:toolbar>


<h:panelGrid columns='1' width='100%' rendered='#{IILibroVentas.form}'>

<h:panelGrid id='bean' columns='2' styleClass='bean align-top'>

  <x:beanPanel id='hd' bean='#{IILibroVentas}' title='Reporte' cellpadding='7'>

  <p:commandButton icon='ui-icon-new' value='#{IILibroVentas.report}' ajax='false' style='background:transparent;border:none'>

  <p:fileDownload value='#{IILibroVentas.reportXLS}'/>

  </p:commandButton>

  </x:beanPanel>


  <x:beanPanel id='ps' bean='#{IILibroVentas}' title='Buscar' cellpadding='5' columns='1' style='min-width: 200px'>

  <x:fieldL b='#{bean}' v='#{bean.report}'  w='150px' t='Reporte' list='#{bean.lsReport}' x='s'/>

  <x:fieldD t='Desde'   v='#{bean.dateIni}' w='70px'/>

  <x:fieldD t='Hasta'   v='#{bean.dateEnd}' w='70px'/>

  </x:beanPanel>

</h:panelGrid>

</h:panelGrid>

</h:panelGroup>   